#ifndef SWIMMINGPOOL_H
#define SWIMMINGPOOL_H

#include <QtGui/QMainWindow>
#include <QTimer>
#include <QImage>
#include <QFileDialog>
#include "ui_swimmingpool.h"

#include "DebugWriter.h"
#include "RayTracer.h"
#include "Scene.h"

#include <time.h>

class SwimmingPool : public QMainWindow
{
	Q_OBJECT

public:
	SwimmingPool(QWidget *parent = 0, Qt::WFlags flags = 0);
	~SwimmingPool();

public slots:
	void startAnimation();
	void stopAnimation();
	void timerDone();
	void trace();

private:
	void mainLoop();
	void createTimer();

	Ui::SwimmingPoolClass ui;
	QTimer* timer;
	clock_t start;
	bool animate;
	DebugWriter debug;
	RayTracer rayTracer;
	Scene* scene;
};

#endif // SWIMMINGPOOL_H
